<?php

namespace app\admin\controller\baiduwebtongji;

use app\common\controller\Backend;

/**
 * 百度网站统计配置管理
 *
 * @icon fa fa-circle-o
 */
class Base extends Backend
{
    public function _initialize()
    {
        parent::_initialize();
        $config = get_addon_config('baiduwebtongji');
        $bdtj_show=1;
        if(!$config['username'] || !$config['password'] || !$config['token']){
            $bdtj_show=0;
        }
        $this->assign('bdtj_show',$bdtj_show);
    }
}